/*
 * @Author: your name
 * @Date: 2022-03-28 17:47:56
 * @LastEditTime: 2022-03-28 17:59:06
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \my-react-app\src\route\index.ts
 */
import { CSSProperties } from 'react'
import { Spin } from 'antd'
import { HashRouter as Router, Route, Routes } from 'react-router-dom'
import loadable from '@loadable/component'

const style: CSSProperties = {
	position: 'fixed',
	left: '50%',
	top: '50%',
	transform: 'translate(-50%,-50%)',
}
const Loadable = (url: any) => {
	return loadable(url, {
		fallback: <Spin style={style} tip='Loading...'></Spin>,
	})
}
